/*
 * Create Date 2006-5-19
 */
package afss.freesky.data.conn;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Title: FreeSky Common Java Library <br>
 * Description: FreeSky Common Java Library <br>
 * Copyright: Copyright (c) 2005~2009 www.afss.cn <br>
 * Company: Amei's FreeSky Studio <br>
 * 
 * @author <b>Jacky Chou</b> (AFSS [Amei's FreeSky Studio])
 * @version 1.2.0, 2008-02-23, Upgrade freesky.jar to 1.2.0 with Struts 2 <br>
 *          1.0.0, 2006-05-30, Initial Version
 */

public interface IDBConn {
	public void getConnection();

	public abstract Connection getDBConnection();

	public abstract ResultSet executeQuery(String sqlStr) throws SQLException;

	public abstract PreparedStatement prepareStatement(String sqlStr) throws SQLException;

	public abstract int executeUpdate(String sqlStr) throws SQLException;

	public abstract void beginTran(boolean supportTran) throws SQLException;

	public abstract void commitTran() throws SQLException;

	public abstract boolean rollBackTran() throws SQLException;

	public abstract void close();

	public abstract void closeResultSet(ResultSet rs);

	public abstract void closeStatement();

	public abstract int getTotal(String sql);
}
